JA = java
JC = javac
JF = jflex
JD = javadoc
JAVACUP = java-cup-11a.jar

.PHONY: run
.PHONY: doc
.PHONY: sympar

vpath = src bin

build: sympar
	$(JC) -classpath ./ -d ./bin ./src/*.java
	echo "finish building"

sympar:
	$(JA) -jar $(JAVACUP) -destdir ./src ./src/Oberon.cup

run:
	$(JA) -classpath ./bin:./ OberonTest ./src/apple.obr

doc:
	$(JD) -private -author -version -d ./doc -classpath ./bin:./ ./src/*.java

clean: 
	rm ./src/sym.java ./src/parser.java
	rm ./bin/*.class
	rm -rf ./doc/*
	
